package org.arain.baseii.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.arain.baseii.pojo.MessageRecord;
import org.arain.baseii.pojo.MessageRecordExample;

public interface MessageRecordMapper {
    int countByExample(MessageRecordExample example);

    int deleteByExample(MessageRecordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(MessageRecord record);

    int insertSelective(MessageRecord record);

    List<MessageRecord> selectByExample(MessageRecordExample example);

    MessageRecord selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") MessageRecord record, @Param("example") MessageRecordExample example);

    int updateByExample(@Param("record") MessageRecord record, @Param("example") MessageRecordExample example);

    int updateByPrimaryKeySelective(MessageRecord record);

    int updateByPrimaryKey(MessageRecord record);
    
    List<MessageRecord>  selectTalk(@Param("sender")String sender,@Param("reciver")String reciver);
}